import java.io.*;
//import java.util.*;

public class StringToFile
{
	public static void create(String content, String filename)
	{
	
	
	try {
		BufferedWriter out = new BufferedWriter(new FileWriter(filename));
		out.write(content);
		out.close();
		} 
		catch (IOException e) 
		{ 
		System.out.println("Exception ");	
		}	
		return ;
	} // main ends here.
}; // the class ends here.

// how to run:

//	StringToFile.create("public class test2{\n\tpublic static void run(){\n\t\tSystem.out.println(Main.string);\n\t}\n}","src/test2.java");
